<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Goods
 *
 * @property int $id 自增id
 * @property int $user_id 发布者
 * @property string|null $ssn 商品货号
 * @property string $name 商品名称
 * @property int $integral 购买商品所获积分
 * @property float $m_price 市场价格
 * @property float $s_price 销售价格
 * @property int $thumb_id 商品缩略图
 * @property string|null $info 商品信息描述
 * @property int $stock 商品库存
 * @property int $classify_id 商品分类id
 * @property string|null $detail 商品详情
 * @property int $is_free_shipping 是否包邮 0:不包邮 1：包邮
 * @property int $is_shop 是否上架，0：否 1：是
 * @property string|null $shop_time 上架时间
 * @property int $is_recommend 是否推荐，0：否 1：是
 * @property int $is_selling 是否热卖，0：否 1：是
 * @property int $sale_count 销售数量
 * @property int $is_new 是否新品，0：否 1：是
 * @property int $sort 商品排序，整数，数字越低排序越前
 * @property string|null $type common:常规商品;integral:积分商品;bargain:砍价商品;group:拼团商品
 * @property int $exchange_integral 兑换商品的积分
 * @property string|null $link_url 商品链接
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Goods onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereClassifyId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereDetail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereExchangeIntegral($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereInfo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereIntegral($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereIsFreeShipping($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereIsNew($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereIsRecommend($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereIsSelling($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereIsShop($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereLinkUrl($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereMPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereSPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereSaleCount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereShopTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereSort($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereSsn($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereStock($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereThumbId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Goods withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Goods withoutTrashed()
 * @mixin \Eloquent
 * @property int $take_goods_time 取货时间（小时）0为不限制
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereTakeGoodsTime($value)
 * @property int $classify_two_id 分类
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereClassifyTwoId($value)
 * @property float $weight 单件重量
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereWeight($value)
 * @property int $sync_time
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Goods whereSyncTime($value)
 */
class Goods extends Model
{
    protected $table = 'goods';
    use SoftDeletes;
}
